package webservice;

public class ISendRequestMessageServiceProxy implements webservice.ISendRequestMessageService {
  private String _endpoint = null;
  private webservice.ISendRequestMessageService iSendRequestMessageService = null;
  
  public ISendRequestMessageServiceProxy() {
    _initISendRequestMessageServiceProxy();
  }
  
  public ISendRequestMessageServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initISendRequestMessageServiceProxy();
  }
  
  private void _initISendRequestMessageServiceProxy() {
    try {
      iSendRequestMessageService = (new webservice.SendRequestMessageServiceLocator()).getSendRequestMessageServicePort();
      if (iSendRequestMessageService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)iSendRequestMessageService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)iSendRequestMessageService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (iSendRequestMessageService != null)
      ((javax.xml.rpc.Stub)iSendRequestMessageService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public webservice.ISendRequestMessageService getISendRequestMessageService() {
    if (iSendRequestMessageService == null)
      _initISendRequestMessageServiceProxy();
    return iSendRequestMessageService;
  }
  
  public java.lang.String onSendMessage(java.lang.String bsId, java.lang.String bsMsg) throws java.rmi.RemoteException, webservice.UnsupportedEncodingException{
    if (iSendRequestMessageService == null)
      _initISendRequestMessageServiceProxy();
    return iSendRequestMessageService.onSendMessage(bsId, bsMsg);
  }
  
  
}